package com.i360day.invoker.annotation;

import com.i360day.invoker.registry.AmqpClientsImportBeanDefinitionRegistrar;
import org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * <p> @description:   </p>
 *
 * <p> @author: 胡.青牛 </p>
 *
 * <p> @date: 2019/4/28 0028  10:27<p>
 **/
@Documented
@RemoteScan
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({AmqpClientsImportBeanDefinitionRegistrar.class, RabbitAutoConfiguration.class})
public @interface EnableAmqpDiscoveryClient {
    /**
     * <p> @Description: 扫描包路径，如果没有则使用（ComponentScan的包路径） <p>
     *
     * <p> @author: 胡.青牛 <p>
     *
     * <p> @Date:   2019/6/3 0003 12:06 <p>
     *
     * <p> @param null   </p>
     *
     * <p> @return:    <p>
     **/
    @AliasFor(annotation = RemoteScan.class)
    String[] basePackages() default {};
}

